package com.wanxi.polymorphic.abs;

public  class AbsAnimal {
    private String name;
    private int age;

    {
        System.out.println("父类类代码块");
    }

    static {
        System.out.println("父类类静态代码块");
    }

    public AbsAnimal() {
        System.out.println("父类类构造方法");
    }

    public void eat() {
        System.out.println("吃");
    }

//    public abstract void eat(AbsAnimal animal);
//
//    public abstract void sleep();
}
